<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" ></meta>
<#include "common.html"/>
</head>
<body>

<div  class="easyui-panel" data-options="fit:true,border:false">
		<form id="UserpwdForm" style="margin: 20px 40px; font-size: 12px;">
			<table>
                <tr>
                    <td>原始密码</td><td><input type="password" id="oldPwd" name="oldPwd" style="width: 175px;" class="easyui-validatebox" data-options="required:true,validType:['length[1,20]']"/></td>

                </tr>
				<tr>
					<td align="right">新密码</td><td><input type="password" id="pwd" name="pwd" style="width: 175px;" class="easyui-validatebox" data-options="required:true,validType:['length[1,20]']"/></td>
					
				</tr>
				<tr>
					<td>确认密码</td><td><input type="password" id="confirmPwd" name="confirmPwd" style="width: 175px;" class="easyui-validatebox"  validType="eqTo['#pwd']"  required="required" /></td>
				</tr>
			</table>
		</form>
	<script>
	

	function submitUser($userDialog,$userGrid,$pjq){
        var form= $("#UserpwdForm");
        var isValid = $(form).form('validate');
        var  data = ns.serializeObject(form);
        if(isValid){
            $.ajax({
                type : 'PUT',
                url : '/easyui/userModifyPwd',
                data :data,
                dataType : 'json',
                success : function(result) {
                    if(result.success){
                        $pjq.messager.alert('提示',result.msg, 'info',function(r){
         	       			$userDialog.dialog('destroy');
         		     	});
                    }else{
                        $pjq.messager.alert('错误',result.msg,'error');
                    }
                }
            });
        }
	}
	</script>
</div>
</body>
</html>